"""
    Software : PyCharm
    File     : routers.py
    Time     : 2021/5/24 18:23
    Author   : Pontoon
    describe :
"""
from rest_framework import routers

from projects.userprofile.views import ChatUserViewSet
from projects.chat_messages.views import MessageViewSet
from projects.groups.views import GroupViewSet, GroupMessageViewSet

router = routers.DefaultRouter(trailing_slash=False)

# 路由部分
router.register("chat/users", ChatUserViewSet, "chat_users")
router.register("messages", MessageViewSet, "message")
router.register("group", GroupViewSet, "group")
router.register("group-message", GroupMessageViewSet, "group-message")

